#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int arr[7] = { 1,2,3,4,5,6,7 };
	int i = 0;
	int n = 0;
	scanf("%d", &n);
	while (n)
	{
		printf("%d ", arr[i]);
		i++;
		n--;
	}
	return 0;
}